import os
import uvicorn
from api.app import app
from config import UPLOAD_DIR
from database.database_function import init_database

# 初始化数据库
init_database()
os.makedirs(UPLOAD_DIR, exist_ok=True)

if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=8000)

